```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>高并发系统设计艺术 | 技术小馆</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f8f9fa;
        }
        .serif {
            font-family: 'Noto Serif SC', serif;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        .highlight {
            position: relative;
            z-index: 1;
        }
        .highlight::before {
            content: '';
            position: absolute;
            left: -0.2em;
            right: -0.2em;
            bottom: 0;
            height: 0.4em;
            background-color: rgba(118, 75, 162, 0.3);
            z-index: -1;
            transform: skewX(-15deg);
        }
        .dropcap::first-letter {
            float: left;
            font-size: 4em;
            line-height: 0.8;
            margin: 0.1em 0.2em 0 0;
            color: #764ba2;
            font-weight: bold;
        }
        .timeline-item::before {
            content: '';
            position: absolute;
            left: -2rem;
            top: 0;
            width: 1rem;
            height: 1rem;
            border-radius: 50%;
            background: #764ba2;
            border: 3px solid white;
        }
        .timeline-connector {
            position: absolute;
            left: -1.5rem;
            top: 1rem;
            bottom: 0;
            width: 2px;
            background: #e2e8f0;
        }
    </style>
</head>
<body class="antialiased">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 md:py-32 px-4">
        <div class="container mx-auto max-w-5xl text-center">
            <h1 class="serif text-4xl md:text-6xl font-bold mb-6 leading-tight">
                高并发系统设计艺术
            </h1>
            <p class="text-xl md:text-2xl font-light mb-8 max-w-3xl mx-auto">
                在性能、可扩展性与可靠性之间寻找完美平衡
            </p>
            <div class="flex justify-center space-x-4">
                <a href="#content" class="px-6 py-3 bg-white text-purple-800 font-medium rounded-full hover:bg-opacity-90 transition">
                    <i class="fas fa-book-open mr-2"></i>开始阅读
                </a>
                <a href="#visualization" class="px-6 py-3 bg-transparent border-2 border-white text-white font-medium rounded-full hover:bg-white hover:text-purple-800 transition">
                    <i class="fas fa-project-diagram mr-2"></i>架构可视化
                </a>
            </div>
        </div>
    </section>

    <!-- Content Section -->
    <section id="content" class="py-16 px-4">
        <div class="container mx-auto max-w-5xl">
            <div class="bg-white rounded-xl shadow-lg overflow-hidden mb-16">
                <div class="p-8 md:p-12">
                    <div class="dropcap text-gray-800 mb-8">
                        设计和实现高并发系统是现代软件工程中的一项关键挑战，尤其是在互联网应用和分布式系统中。高并发系统的设计不仅仅是提高系统的处理能力，还需要在性能、可扩展性、可靠性、稳定性和成本之间做出权衡。
                    </div>
                </div>
            </div>

            <!-- 1. Understanding Core Concepts -->
            <div class="mb-16">
                <h2 class="serif text-3xl font-bold text-gray-800 mb-6 flex items-center">
                    <span class="bg-purple-100 text-purple-800 rounded-full w-10 h-10 flex items-center justify-center mr-4">1</span>
                    <span class="highlight">理解高并发的核心概念</span>
                </h2>
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                    <div class="p-8">
                        <p class="text-gray-700 mb-6">
                            高并发系统的核心是处理大量同时发起的请求或任务。这些请求可能来自用户操作（如Web访问）、后台任务（如数据同步）、或系统内部组件之间的通信。高并发并不是简单的高流量，而是指系统在同一时间点上需要处理的大量操作。
                        </p>
                        <div class="bg-purple-50 rounded-lg p-6 border-l-4 border-purple-500">
                            <p class="font-medium text-purple-800 mb-2">
                                <i class="fas fa-lightbulb text-purple-600 mr-2"></i>关键区别
                            </p>
                            <p class="text-gray-700">
                                <span class="font-semibold">并发</span>是指多个任务交替进行，可能在同一时间片内完成；<br>
                                <span class="font-semibold">并行</span>是指多个任务同时进行，通常需要多核处理器支持。
                            </p>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 2. Architecture Design -->
            <div class="mb-16">
                <h2 class="serif text-3xl font-bold text-gray-800 mb-6 flex items-center">
                    <span class="bg-purple-100 text-purple-800 rounded-full w-10 h-10 flex items-center justify-center mr-4">2</span>
                    <span class="highlight">架构设计与模式选择</span>
                </h2>
                <p class="text-gray-600 mb-8">
                    高并发系统的设计首先需要一个合理的架构。以下是三种常见的架构模式及其特点比较：
                </p>
                
                <div class="grid md:grid-cols-3 gap-6 mb-8">
                    <!-- Distributed Architecture -->
                    <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                        <div class="p-6">
                            <div class="flex items-center mb-4">
                                <div class="bg-purple-100 text-purple-800 p-3 rounded-lg mr-4">
                                    <i class="fas fa-network-wired text-xl"></i>
                                </div>
                                <h3 class="serif text-xl font-bold text-gray-800">分布式架构</h3>
                            </div>
                            <p class="text-gray-700">
                                通过将系统功能模块分布到不同的节点上，实现负载均衡和水平扩展。这种架构能够将高并发请求分散到多个服务器上处理，从而提高整体吞吐量。
                            </p>
                            <div class="mt-4 pt-4 border-t border-gray-100">
                                <span class="inline-block bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded mr-2">水平扩展</span>
                                <span class="inline-block bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded">负载均衡</span>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Microservices -->
                    <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                        <div class="p-6">
                            <div class="flex items-center mb-4">
                                <div class="bg-purple-100 text-purple-800 p-3 rounded-lg mr-4">
                                    <i class="fas fa-cubes text-xl"></i>
                                </div>
                                <h3 class="serif text-xl font-bold text-gray-800">微服务架构</h3>
                            </div>
                            <p class="text-gray-700">
                                将单体应用拆分为多个小的服务，每个服务独立部署和扩展。微服务架构允许每个服务根据实际负载情况独立扩展，从而提高整个系统的弹性和并发处理能力。
                            </p>
                            <div class="mt-4 pt-4 border-t border-gray-100">
                                <span class="inline-block bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded mr-2">服务拆分</span>
                                <span class="inline-block bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded">独立扩展</span>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Event-Driven -->
                    <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                        <div class="p-6">
                            <div class="flex items-center mb-4">
                                <div class="bg-purple-100 text-purple-800 p-3 rounded-lg mr-4">
                                    <i class="fas fa-bolt text-xl"></i>
                                </div>
                                <h3 class="serif text-xl font-bold text-gray-800">事件驱动架构</h3>
                            </div>
                            <p class="text-gray-700">
                                采用事件驱动的方式处理请求，适合于高并发场景下的非阻塞操作。通过消息队列和事件总线，将任务的处理异步化，避免系统阻塞，提高并发处理能力。
                            </p>
                            <div class="mt-4 pt-4 border-t border-gray-100">
                                <span class="inline-block bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded mr-2">异步处理</span>
                                <span class="inline-block bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded">非阻塞</span>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white rounded-xl shadow-md overflow-hidden">
                    <div class="p-8">
                        <p class="text-gray-700">
                            这些架构模式各有优劣，选择合适的架构模式需要根据具体业务场景和需求进行权衡。通常，一个成熟的高并发系统会结合多种架构模式的优点。
                        </p>
                    </div>
                </div>
            </div>

            <!-- 3. Data Processing -->
            <div class="mb-16">
                <h2 class="serif text-3xl font-bold text-gray-800 mb-6 flex items-center">
                    <span class="bg-purple-100 text-purple-800 rounded-full w-10 h-10 flex items-center justify-center mr-4">3</span>
                    <span class="highlight">数据处理与存储优化</span>
                </h2>
                
                <div class="grid md:grid-cols-2 gap-6 mb-8">
                    <!-- Read-Write Separation -->
                    <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                        <div class="p-6">
                            <div class="flex items-center mb-4">
                                <div class="bg-purple-100 text-purple-800 p-3 rounded-lg mr-4">
                                    <i class="fas fa-exchange-alt text-xl"></i>
                                </div>
                                <h3 class="serif text-xl font-bold text-gray-800">读写分离</h3>
                            </div>
                            <p class="text-gray-700">
                                通过将读操作和写操作分离到不同的数据库实例上，可以减轻数据库的负载。读操作可以使用从库进行处理，而写操作则由主库负责，这种方式能够有效提升数据库的并发处理能力。
                            </p>
                        </div>
                    </div>
                    
                    <!-- Caching -->
                    <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                        <div class="p-6">
                            <div class="flex items-center mb-4">
                                <div class="bg-purple-100 text-purple-800 p-3 rounded-lg mr-4">
                                    <i class="fas fa-database text-xl"></i>
                                </div>
                                <h3 class="serif text-xl font-bold text-gray-800">缓存机制</h3>
                            </div>
                            <p class="text-gray-700">
                                在高并发系统中，缓存机制是非常重要的优化手段之一。通过在应用层（如Redis、Memcached）或者CDN层（内容分发网络）进行缓存，可以大幅度减少数据库的直接读写操作。
                            </p>
                        </div>
                    </div>
                </div>
                
                <div class="bg-white rounded-xl shadow-md overflow-hidden mb-8">
                    <div class="p-8">
                        <h3 class="serif text-xl font-bold text-gray-800 mb-4">分库分表策略</h3>
                        <p class="text-gray-700 mb-6">
                            将数据拆分到多个数据库实例和表中，分散数据的存储和访问压力。常用的策略有：
                        </p>
                        <div class="grid md:grid-cols-2 gap-4">
                            <div class="bg-purple-50 rounded-lg p-4">
                                <h4 class="font-semibold text-purple-800 mb-2">
                                    <i class="fas fa-arrows-alt-h text-purple-600 mr-2"></i>水平分片
                                </h4>
                                <p class="text-gray-700">
                                    根据某个字段（如用户ID）将数据拆分到不同的表或数据库中
                                </p>
                            </div>
                            <div class="bg-purple-50 rounded-lg p-4">
                                <h4 class="font-semibold text-purple-800 mb-2">
                                    <i class="fas fa-arrows-alt-v text-purple-600 mr-2"></i>垂直分片
                                </h4>
                                <p class="text-gray-700">
                                    根据数据的功能或用途进行拆分
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 4. Hardware Utilization -->
            <div class="mb-16">
                <h2 class="serif text-3xl font-bold text-gray-800 mb-6 flex items-center">
                    <span class="bg-purple-100 text-purple-800 rounded-full w-10 h-10 flex items-center justify-center mr-4">4</span>
                    <span class="highlight">硬件利用与资源管理</span>
                </h2>
                
                <div class="grid md:grid-cols-3 gap-6 mb-8">
                    <!-- Multithreading -->
                    <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                        <div class="p-6">
                            <div class="flex items-center mb-4">
                                <div class="bg-purple-100 text-purple-800 p-3 rounded-lg mr-4">
                                    <i class="fas fa-code-branch text-xl"></i>
                                </div>
                                <h3 class="serif text-xl font-bold text-gray-800">多线程与异步编程</h3>
                            </div>
                            <p class="text-gray-700">
                                通过多线程技术和异步编程模型（如Java的CompletableFuture、Node.js的非阻塞I/O模型）来提高并发处理能力。异步编程能够避免线程阻塞，最大化CPU的利用率。
                            </p>
                        </div>
                    </div>
                    
                    <!-- Load Balancing -->
                    <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                        <div class="p-6">
                            <div class="flex items-center mb-4">
                                <div class="bg-purple-100 text-purple-800 p-3 rounded-lg mr-4">
                                    <i class="fas fa-balance-scale text-xl"></i>
                                </div>
                                <h3 class="serif text-xl font-bold text-gray-800">负载均衡</h3>
                            </div>
                            <p class="text-gray-700">
                                负载均衡器（如Nginx、HAProxy）用于将请求分发到多个服务器节点，避免单点过载。负载均衡策略有多种，如轮询、最小连接数、IP哈希等。
                            </p>
                        </div>
                    </div>
                    
                    <!-- Resource Isolation -->
                    <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                        <div class="p-6">
                            <div class="flex items-center mb-4">
                                <div class="bg-purple-100 text-purple-800 p-3 rounded-lg mr-4">
                                    <i class="fas fa-shield-alt text-xl"></i>
                                </div>
                                <h3 class="serif text-xl font-bold text-gray-800">资源隔离与限流</h3>
                            </div>
                            <p class="text-gray-700">
                                通过资源隔离（如容器化技术）和限流策略（如令牌桶算法、漏桶算法）来防止系统资源被耗尽，保证系统的稳定性和可靠性。
                            </p>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 5. Performance Optimization -->
            <div class="mb-16">
                <h2 class="serif text-3xl font-bold text-gray-800 mb-6 flex items-center">
                    <span class="bg-purple-100 text-purple-800 rounded-full w-10 h-10 flex items-center justify-center mr-4">5</span>
                    <span class="highlight">性能优化与调优</span>
                </h2>
                
                <div class="bg-white rounded-xl shadow-md overflow-hidden mb-8">
                    <div class="p-8">
                        <div class="grid md:grid-cols-3 gap-6">
                            <!-- Network Optimization -->
                            <div>
                                <h3 class="serif text-xl font-bold text-gray-800 mb-3 flex items-center">
                                    <i class="fas fa-network-wired text-purple-600 mr-3"></i>网络优化
                                </h3>
                                <ul class="text-gray-700 space-y-2">
                                    <li class="flex items-start">
                                        <i class="fas fa-check-circle text-purple-500 mt-1 mr-2"></i>
                                        <span>减少网络延迟</span>
                                    </li>
                                    <li class="flex items-start">
                                        <i class="fas fa-check-circle text-purple-500 mt-1 mr-2"></i>
                                        <span>优化网络协议（HTTP/2、gRPC）</span>
                                    </li>
                                    <li class="flex items-start">
                                        <i class="fas fa-check-circle text-purple-500 mt-1 mr-2"></i>
                                        <span>使用CDN加速静态资源</span>
                                    </li>
                                </ul>
                            </div>
                            
                            <!-- Algorithm Optimization -->
                            <div>
                                <h3 class="serif text-xl font-bold text-gray-800 mb-3 flex items-center">
                                    <i class="fas fa-brain text-purple-600 mr-3"></i>算法和数据结构
                                </h3>
                                <ul class="text-gray-700 space-y-2">
                                    <li class="flex items-start">
                                        <i class="fas fa-check-circle text-purple-500 mt-1 mr-2"></i>
                                        <span>选择高效算法</span>
                                    </li>
                                    <li class="flex items-start">
                                        <i class="fas fa-check-circle text-purple-500 mt-1 mr-2"></i>
                                        <span>跳表、红黑树等数据结构</span>
                                    </li>
                                    <li class="flex items-start">
                                        <i class="fas fa-check-circle text-purple-500 mt-1 mr-2"></i>
                                        <span>降低时空复杂度</span>
                                    </li>
                                </ul>
                            </div>
                            
                            <!-- I/O Optimization -->
                            <div>
                                <h3 class="serif text-xl font-bold text-gray-800 mb-3 flex items-center">
                                    <i class="fas fa-hdd text-purple-600 mr-3"></i>I/O优化
                                </h3>
                                <ul class="text-gray-700 space-y-2">
                                    <li class="flex items-start">
                                        <i class="fas fa-check-circle text-purple-500 mt-1 mr-2"></i>
                                        <span>异步I/O</span>
                                    </li>
                                    <li class="flex items-start">
                                        <i class="fas fa-check-circle text-purple-500 mt-1 mr-2"></i>
                                        <span>零拷贝技术（如Java NIO）</span>
                                    </li>
                                    <li class="flex items-start">
                                        <i class="fas fa-check-circle text-purple-500 mt-1 mr-2"></i>
                                        <span>批量处理</span>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 6. Reliability -->
            <div class="mb-16">
                <h2 class="serif text-3xl font-bold text-gray-800 mb-6 flex items-center">
                    <span class="bg-purple-100 text-purple-800 rounded-full w-10 h-10 flex items-center justify-center mr-4">6</span>
                    <span class="highlight">可靠性与故障处理</span>
                </h2>
                
                <div class="relative">
                    <!-- Timeline -->
                    <div class="border-l-2 border-gray-200 ml-8 pl-8 space-y-12">
                        <!-- 1. Circuit Breaker -->
                        <div class="relative timeline-item">
                            <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                                <div class="p-6">
                                    <h3 class="serif text-xl font-bold text-gray-800 mb-2">熔断与降级</h3>
                                    <p class="text-gray-700">
                                        通过熔断机制（如Hystrix、Sentinel）来避免系统在高负载或故障状态下崩溃。熔断器能够检测到服务调用失败率达到一定阈值后，短路后续请求，防止雪崩效应。降级策略则是在系统高负载或部分服务不可用时，提供简化的服务响应。
                                    </p>
                                </div>
                            </div>
                            <div class="timeline-connector"></div>
                        </div>
                        
                        <!-- 2. Idempotency -->
                        <div class="relative timeline-item">
                            <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                                <div class="p-6">
                                    <h3 class="serif text-xl font-bold text-gray-800 mb-2">幂等性设计</h3>
                                    <p class="text-gray-700">
                                        在分布式系统中，幂等性设计非常重要。幂等操作是指同一操作执行多次的结果与执行一次的结果相同。这在网络重试机制、分布式事务处理中尤为关键，避免重复数据处理或操作失误。
                                    </p>
                                </div>
                            </div>
                            <div class="timeline-connector"></div>
                        </div>
                        
                        <!-- 3. Monitoring -->
                        <div class="relative timeline-item">
                            <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                                <div class="p-6">
                                    <h3 class="serif text-xl font-bold text-gray-800 mb-2">日志与监控</h3>
                                    <p class="text-gray-700">
                                        通过完善的日志记录和监控系统（如Prometheus、Grafana、ELK）来实时监控系统的运行状态，及时发现和定位问题，进行故障排除和性能优化。
                                    </p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 7. Scalability -->
            <div class="mb-16">
                <h2 class="serif text-3xl font-bold text-gray-800 mb-6 flex items-center">
                    <span class="bg-purple-100 text-purple-800 rounded-full w-10 h-10 flex items-center justify-center mr-4">7</span>
                    <span class="highlight">系统扩展与弹性设计</span>
                </h2>
                
                <div class="bg-white rounded-xl shadow-md overflow-hidden mb-8">
                    <div class="p-8">
                        <div class="grid md:grid-cols-3 gap-6">
                            <!-- Horizontal Scaling -->
                            <div>
                                <h3 class="serif text-xl font-bold text-gray-800 mb-3 flex items-center">
                                    <i class="fas fa-expand text-purple-600 mr-3"></i>水平扩展
                                </h3>
                                <p class="text-gray-700">
                                    通过增加服务器节点的方式来扩展系统的处理能力。水平扩展通常比垂直扩展（提升单个服务器的硬件性能）更加经济和灵活。
                                </p>
                            </div>
                            
                            <!-- Stateless Design -->
                            <div>
                                <h3 class="serif text-xl font-bold text-gray-800 mb-3 flex items-center">
                                    <i class="fas fa-unlink text-purple-600 mr-3"></i>无状态服务设计
                                </h3>
                                <p class="text-gray-700">
                                    为了便于扩展和维护，高并发系统的设计通常会采用无状态服务架构。无状态服务意味着服务不存储会话信息，所有状态信息存储在客户端或共享存储中。
                                </p>
                            </div>
                            
                            <!-- Auto Scaling -->
                            <div>
                                <h3 class="serif text-xl font-bold text-gray-800 mb-3 flex items-center">
                                    <i class="fas fa-robot text-purple-600 mr-3"></i>弹性伸缩
                                </h3>
                                <p class="text-gray-700">
                                    通过自动化的弹性伸缩策略（如Kubernetes的HPA、AWS的Auto Scaling），系统能够根据实时负载情况自动调整资源配置，确保高并发处理能力和资源利用率。
                                </p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Visualization Section -->
            <div id="visualization" class="mb-16">
                <h2 class="serif text-3xl font-bold text-gray-800 mb-8 text-center">
                    <span class="highlight">高并发系统架构可视化</span>
                </h2>
                
                <div class="bg-white rounded-xl shadow-lg overflow-hidden">
                    <div class="p-8">
                        <div class="mermaid">
                            graph TD
                            A[客户端] --> B[负载均衡器]
                            B --> C[Web服务器集群]
                            B --> D[API网关]
                            D --> E[微服务A]
                            D --> F[微服务B]
                            D --> G[微服务C]
                            C --> H[缓存层]
                            H --> I[主数据库]
                            I --> J[从数据库]
                            E --> K[消息队列]
                            F --> K
                            G --> K
                            K --> L[异步处理器]
                            L --> M[数据仓库]
                            
                            style A fill:#fff,stroke:#667eea,stroke-width:2px
                            style B fill:#f8f9fa,stroke:#764ba2,stroke-width:2px
                            style C fill:#f8f9fa,stroke:#764ba2,stroke-width:2px
                            style D fill:#f8f9fa,stroke:#764ba2,stroke-width:2px
                            style E fill:#f0f9ff,stroke:#4299e1,stroke-width:2px
                            style F fill:#f0f9ff,stroke:#4299e1,stroke-width:2px
                            style G fill:#f0f9ff,stroke:#4299e1,stroke-width:2px
                            style H fill:#f0fff4,stroke:#48bb78,stroke-width:2px
                            style I fill:#fff5f5,stroke:#f56565,stroke-width:2px
                            style J fill:#fff5f5,stroke:#f56565,stroke-width:2px
                            style K fill:#faf5ff,stroke:#9f7aea,stroke-width:2px
                            style L fill:#f0fff4,stroke:#48bb78,stroke-width:2px
                            style M fill:#ebf8ff,stroke:#3182ce,stroke-width:2px
                        </div>
                    </div>
                </div>
                
                <div class="mt-6 grid md:grid-cols-4 gap-4 text-center">
                    <div class="bg-purple-100 text-purple-800 py-2 px-4 rounded-lg">客户端</div>
                    <div class="bg-purple-100 text-purple-800 py-2 px-4 rounded-lg">负载均衡</div>
                    <div class="bg-blue-100 text-blue-800 py-2 px-4 rounded-lg">微服务</div>
                    <div class="bg-red-100 text-red-800 py-2 px-4 rounded-lg">数据库</div>
                </div>
            </div>
        </div>
    </section>

    <!-- Footer -->
    <footer class="bg-gray-900 text-white py-12 px-4">
        <div class="container mx-auto max-w-5xl">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="mb-4 md:mb-0">
                    <h3 class="serif text-xl font-bold">技术小馆</h3>
                    <p class="text-gray-400 mt-1">探索技术的无限可能</p>
                </div>
                <div>
                    <a href="http://www.yuque.com/jtostring" class="text-gray-300 hover:text-white transition flex items-center">
                        <i class="fas fa-external-link-alt mr-2"></i> http://www.yuque.com/jtostring
                    </a>
                </div>
            </div>
            <div class="mt-8 pt-8 border-t border-gray-800 text-center text-gray-500 text-sm">
                &copy; 2023 技术小馆. 保留所有权利.
            </div>
        </div>
    </footer>

    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
    </script>
</body>
</html>
```